﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchVolunteerControl_AddCleanPlan.ascx.vb"
    Inherits="WebForm_ManageTrainingRegister_SearchVolunteerControl_AddCleanPlan" %>
<%@ Register Src="../CommonControl/VolunteerQueryControl.ascx" TagName="VolunteerQueryControl"
    TagPrefix="uc1" %>

   
<script src="<%=Me.ResolveUrl("~/js/JScript.js") %>" type="text/javascript"></script>
<asp:UpdatePanel ID="up" runat="server">
    <ContentTemplate>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" Style="cursor: move;"
    Width="600">
    <br />
    <div align="center">
        <asp:Label ID="lblTitle" runat="server" Text="<%$ Resources:Title %>" SkinID="title"></asp:Label>
    </div>
    <br />
    <table align="center">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="margin-left: 40px">
                            <uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" LoadOnStartUp="true" />
                        </td>
                        <td valign="bottom">
                            <asp:Button ID="btnQuery" runat="server" Text="<%$ Resources:Query %>" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <My:MyGridView ID="GridView_Volunteers" runat="server" SkinID="pager" DataKeyNames="VolunteerID"
                    EmptyDataText="<%$ Resources:NoData %>" AllowPaging="True" AllowSorting="True"
                    AllowHoverEffect="False" AllowHoverSelect="False" MySortDirection="Ascending"  PageSize="10">
                      <PagerSettings Position="Top" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" Enabled='<%# Bind("IsEnable") %>' />
                            </ItemTemplate>
                            <HeaderTemplate>
                                <input id="cbCheckAll" onclick="Check2(this,'GridView_Volunteers','CheckBox1');"
                                    runat="server" type="checkbox" />
                                  <%--   <asp:CheckBox ID="cbCheckAll" runat="server" OnCheckedChanged="cbCheckAll_CheckedChanged"
                                        AutoPostBack="true"></asp:CheckBox>--%>
                                    <asp:Label ID="Label2" runat="server" Text="全選"></asp:Label>
                            </HeaderTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="VolunteerID" HeaderText="<%$ Resources:VolunteerID %>"
                            SortExpression="VolunteerID" />
                        <asp:BoundField DataField="VolunteerName" HeaderText="<%$ Resources:VolunteerName %>"
                            SortExpression="VolunteerName" />                      
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnOK" runat="server" Text="<%$ Resources:OK%>" />
                <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Cancel%>" />
            </td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" CancelControlID="btnCancel" PopupDragHandleControlID="panel1" />

    </ContentTemplate>
</asp:UpdatePanel>

